﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing.Drawing2D;

namespace Lib.Pieces
{
    class CShape : IShape 
    {
        GraphicsPath graph;
        Color color;
        public CShape(bool black = false)
        {

            if (black)
            {
                this.color = new Color(100, 100, 100);
            }
            else
            {
                this.color = new Color(200, 200, 200);
            }
            this.graph = new GraphicsPath();

            this.graph.AddArc(10, 10, 80, 80, 10, 345);
            this.graph.Reverse();
            this.graph.AddArc(35, 35, 30, 30, 25, 325);
            this.graph.CloseFigure();
            //this.graph.AddArc(10, 10, 60, 80, 90, 180);
            //this.graph.AddArc(20, 10, 60, 70, -90, 90);
            //this.graph.AddLine(76, 45, 65, 45);
            //this.graph.AddArc(20, 10, 60, 70, 0, 90);
            
            //this.graph.AddLine(10, 90, 10, 10);
            //this.graph.AddLine(10, 10, 30, 10);
            //this.graph.AddArc(10, 10, 60, 40, -90, 180);
            //this.graph.AddArc(10, 50, 60, 40, -90, 180);
            //this.graph.AddLine(40, 90, 10, 90);
        }
        public System.Drawing.Drawing2D.GraphicsPath GetShape()
        {
            return this.graph;
        }

        public Color GetShapeColor()
        {
            return this.color;
        }
    }
}
